/*
 * Flow definitions/parsing
 */

#ifndef _FLOW_H_
#define _FLOW_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>


int timediff(struct timeval *b, struct timeval *e);


typedef struct flow_t {
    char     *smac;
    char     *dmac;
    in_addr_t sip;
    in_addr_t dip;
    int       send;
    int       recv;
    int       c_send;
    int       c_recv; 
    int       error;
} flow;

int parse_flows(char *file, flow *flows, int nflows);

#endif /* _FLOW_H */
